package archivemanagement;

import java.io.IOException;
import java.util.Collection;
import java.util.UUID;

import metagrammar.Type;

public interface TypeArchive {
    
    public abstract boolean writeType(Type type) throws IOException;
    
    public abstract Type loadType(UUID id) throws IOException;
    
    public abstract boolean containsType(UUID id) throws IOException;
    
    public abstract Collection<Type> loadAllTypes() throws IOException;
    
}
